import { dataMap } from '@/conf';
import { dateConvert } from '@/utils';
// Vue.use(下面的对象)
export default {
    install(Vue) {
        Vue.filter('birthday', (val, ...args) => {
            return dateConvert(val)
        })
        for (let name in dataMap) {
            Vue.filter(name, (val, ...args) => {
                return dataMap[name][val];
            })
        }
    }
}
